import java.util.Scanner;

public class ixn {
    public static void main(String[] args) {
       Scanner jp=new Scanner(System.in);
       System.out.println("请输入乘法表行数");
        int xin=jp.nextInt();
        for (int i = 1; i <=xin; i++){
            System.out.println();
            for (int j = 1; j <=i; j++){
                System.out.print(i+"*"+j+"="+(i*j)+" ");
            }
        }
        System.out.println();
    }
}
